package ui;
import java.awt.event.ActionEvent;
import java.sql.SQLException;
import java.util.Random;
import dao.*;
import javax.swing.AbstractAction;
import javax.swing.ComboBoxModel;
import javax.swing.DefaultComboBoxModel;
import javax.swing.GroupLayout;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JComponent;
import javax.swing.JDialog;
import javax.swing.JEditorPane;
import javax.swing.JLabel;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.JTextField;
import javax.swing.JTextPane;
import javax.swing.JWindow;
import javax.swing.LayoutStyle;

import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class insertWindow extends javax.swing.JFrame {
	private JButton OkButtonInsert;
	private AbstractAction OK_insert;
	private JTextField habitatText;
	private JTextField incubationText;
	private JTextField longevityText;
	private JTextField colorText;
	private JLabel jLabel14;
	private JTextField imageURLText;
	private JLabel jLabel13;
	private JTextField clutchText;
	private JLabel jLabel12;
	private JLabel jLabel7;
	private JLabel jLabel6;
	private JTextField insertTypeOfFood;
	private JLabel jLabel11;
	private JLabel jLabel10;
	private JLabel jLabel9;
	private JLabel jLabel8;
	private JScrollPane jScrollPane1;
	private JPanel jPanel1;
	private JComboBox roeCB;
	private JTextField sizeText;
	private JTextField wText;
	private JTextField popText;
	private JTextField sciText;
	private JLabel jLabel4;
	private JLabel jLabel5;
	private JLabel jLabel3;
	private JLabel jLabel2;
	private JLabel jLabel1;
	private JLabel labelBasico;
	
	public insertWindow() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			GroupLayout thisLayout = new GroupLayout((JComponent)getContentPane());
			getContentPane().setLayout(thisLayout);
			thisLayout.setVerticalGroup(thisLayout.createSequentialGroup()
				.addComponent(getJScrollPane1(), 0, 411, Short.MAX_VALUE));
			thisLayout.setHorizontalGroup(thisLayout.createSequentialGroup()
				.addComponent(getJScrollPane1(), 0, 407, Short.MAX_VALUE));
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			this.setResizable(false);
			this.setPreferredSize(new java.awt.Dimension(413, 466));
			this.setTitle("Insert");
			this.setAlwaysOnTop(true);
			pack();
			this.setSize(413, 466);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}
	
	private JLabel getLabelBasico() {
		if(labelBasico == null) {
			labelBasico = new JLabel();
			labelBasico.setText("Basic Information:");
		}
		return labelBasico;
	}
	
	private JLabel getJLabel1() {
		if(jLabel1 == null) {
			jLabel1 = new JLabel();
			jLabel1.setText("Scientific Name:");
		}
		return jLabel1;
	}
	
	private JLabel getJLabel2() {
		if(jLabel2 == null) {
			jLabel2 = new JLabel();
			jLabel2.setText("Popular Name:");
		}
		return jLabel2;
	}
	
	private JLabel getJLabel3() {
		if(jLabel3 == null) {
			jLabel3 = new JLabel();
			jLabel3.setText("Weight:");
		}
		return jLabel3;
	}
	
	private JLabel getJLabel4() {
		if(jLabel4 == null) {
			jLabel4 = new JLabel();
			jLabel4.setText("Size:");
		}
		return jLabel4;
	}
	
	private JLabel getJLabel5() {
		if(jLabel5 == null) {
			jLabel5 = new JLabel();
			jLabel5.setText("Risk of Extinction:");
		}
		return jLabel5;
	}

	private JTextField getSciText() {
		if(sciText == null) {
			sciText = new JTextField();
		}
		return sciText;
	}
	
	private JTextField getPopText() {
		if(popText == null) {
			popText = new JTextField();
		}
		return popText;
	}
	
	private JTextField getWText() {
		if(wText == null) {
			wText = new JTextField();
		}
		return wText;
	}
	
	private JTextField getSizeText() {
		if(sizeText == null) {
			sizeText = new JTextField();
		}
		return sizeText;
	}
	
	private JComboBox getRoeCB() {
		if(roeCB == null) {
			ComboBoxModel roeCBModel = 
				new DefaultComboBoxModel(
						mainWindow.RiskOfExtinction);
			roeCB = new JComboBox();
			roeCB.setModel(roeCBModel);
			}
		return roeCB;
	}

	private JPanel getJPanel1() {
		if(jPanel1 == null) {
			jPanel1 = new JPanel();
			GroupLayout jPanel1Layout = new GroupLayout((JComponent)jPanel1);
			jPanel1.setLayout(jPanel1Layout);
			jPanel1.setPreferredSize(new java.awt.Dimension(432, 288));
			jPanel1Layout.setHorizontalGroup(jPanel1Layout.createSequentialGroup()
				.addGroup(jPanel1Layout.createParallelGroup()
				    .addGroup(GroupLayout.Alignment.LEADING, jPanel1Layout.createParallelGroup()
				        .addGroup(GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()
				            .addComponent(getLabelBasico(), GroupLayout.PREFERRED_SIZE, 150, GroupLayout.PREFERRED_SIZE)
				            .addGap(24))
				        .addComponent(getJLabel8(), GroupLayout.Alignment.LEADING, GroupLayout.PREFERRED_SIZE, 174, GroupLayout.PREFERRED_SIZE)
				        .addComponent(getJLabel10(), GroupLayout.Alignment.LEADING, GroupLayout.PREFERRED_SIZE, 174, GroupLayout.PREFERRED_SIZE))
				    .addGroup(jPanel1Layout.createSequentialGroup()
				        .addPreferredGap(getLabelBasico(), getJLabel13(), LayoutStyle.ComponentPlacement.INDENT)
				        .addGroup(jPanel1Layout.createParallelGroup()
				            .addGroup(GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()
				                .addComponent(getJLabel13(), GroupLayout.PREFERRED_SIZE, 116, GroupLayout.PREFERRED_SIZE)
				                .addGap(34))
				            .addGroup(GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()
				                .addComponent(getJLabel12(), GroupLayout.PREFERRED_SIZE, 90, GroupLayout.PREFERRED_SIZE)
				                .addGap(60))
				            .addGroup(GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()
				                .addComponent(getJLabel7(), GroupLayout.PREFERRED_SIZE, 104, GroupLayout.PREFERRED_SIZE)
				                .addGap(46))
				            .addGroup(GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()
				                .addComponent(getJLabel6(), GroupLayout.PREFERRED_SIZE, 116, GroupLayout.PREFERRED_SIZE)
				                .addGap(34))
				            .addGroup(GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()
				                .addComponent(getJLabel9(), GroupLayout.PREFERRED_SIZE, 104, GroupLayout.PREFERRED_SIZE)
				                .addGap(46))
				            .addGroup(GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()
				                .addComponent(getJLabel11(), GroupLayout.PREFERRED_SIZE, 138, GroupLayout.PREFERRED_SIZE)
				                .addGap(12))
				            .addComponent(getJLabel5(), GroupLayout.Alignment.LEADING, GroupLayout.PREFERRED_SIZE, 150, GroupLayout.PREFERRED_SIZE)
				            .addComponent(getJLabel4(), GroupLayout.Alignment.LEADING, GroupLayout.PREFERRED_SIZE, 150, GroupLayout.PREFERRED_SIZE)
				            .addComponent(getJLabel3(), GroupLayout.Alignment.LEADING, GroupLayout.PREFERRED_SIZE, 150, GroupLayout.PREFERRED_SIZE)
				            .addComponent(getJLabel2(), GroupLayout.Alignment.LEADING, GroupLayout.PREFERRED_SIZE, 150, GroupLayout.PREFERRED_SIZE)
				            .addComponent(getJLabel1(), GroupLayout.Alignment.LEADING, GroupLayout.PREFERRED_SIZE, 150, GroupLayout.PREFERRED_SIZE)
				            .addGroup(GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()
				                .addComponent(getJLabel14(), GroupLayout.PREFERRED_SIZE, 123, GroupLayout.PREFERRED_SIZE)
				                .addGap(27)))
				        .addGap(12)))
				.addGroup(jPanel1Layout.createParallelGroup()
				    .addGroup(jPanel1Layout.createSequentialGroup()
				        .addComponent(getImageURLText(), GroupLayout.PREFERRED_SIZE, 214, GroupLayout.PREFERRED_SIZE))
				    .addGroup(jPanel1Layout.createSequentialGroup()
				        .addComponent(getLongevityText(), GroupLayout.PREFERRED_SIZE, 214, GroupLayout.PREFERRED_SIZE))
				    .addGroup(jPanel1Layout.createSequentialGroup()
				        .addComponent(getIncubationText(), GroupLayout.PREFERRED_SIZE, 214, GroupLayout.PREFERRED_SIZE))
				    .addGroup(jPanel1Layout.createSequentialGroup()
				        .addComponent(getHabitatText(), GroupLayout.PREFERRED_SIZE, 214, GroupLayout.PREFERRED_SIZE))
				    .addGroup(jPanel1Layout.createSequentialGroup()
				        .addComponent(getSciText(), GroupLayout.PREFERRED_SIZE, 214, GroupLayout.PREFERRED_SIZE))
				    .addGroup(jPanel1Layout.createSequentialGroup()
				        .addComponent(getPopText(), GroupLayout.PREFERRED_SIZE, 214, GroupLayout.PREFERRED_SIZE))
				    .addGroup(jPanel1Layout.createSequentialGroup()
				        .addComponent(getWText(), GroupLayout.PREFERRED_SIZE, 214, GroupLayout.PREFERRED_SIZE))
				    .addGroup(jPanel1Layout.createSequentialGroup()
				        .addComponent(getSizeText(), GroupLayout.PREFERRED_SIZE, 214, GroupLayout.PREFERRED_SIZE))
				    .addGroup(GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()
				        .addComponent(getRoeCB(), GroupLayout.PREFERRED_SIZE, 105, GroupLayout.PREFERRED_SIZE)
				        .addGap(42)
				        .addComponent(getOkButtonInsert(), GroupLayout.PREFERRED_SIZE, 67, GroupLayout.PREFERRED_SIZE))
				    .addGroup(jPanel1Layout.createSequentialGroup()
				        .addComponent(getInsertTypeOfFood(), GroupLayout.PREFERRED_SIZE, 214, GroupLayout.PREFERRED_SIZE))
				    .addGroup(jPanel1Layout.createSequentialGroup()
				        .addComponent(getClutchText(), GroupLayout.PREFERRED_SIZE, 214, GroupLayout.PREFERRED_SIZE))
				    .addGroup(jPanel1Layout.createSequentialGroup()
				        .addComponent(getColorText(), GroupLayout.PREFERRED_SIZE, 214, GroupLayout.PREFERRED_SIZE)))
				.addContainerGap(44, Short.MAX_VALUE));
			jPanel1Layout.setVerticalGroup(jPanel1Layout.createSequentialGroup()
				.addComponent(getLabelBasico(), GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
				.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
				.addGroup(jPanel1Layout.createParallelGroup(GroupLayout.Alignment.BASELINE)
				    .addComponent(getSciText(), GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
				    .addComponent(getJLabel1(), GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE))
				.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
				.addGroup(jPanel1Layout.createParallelGroup(GroupLayout.Alignment.BASELINE)
				    .addComponent(getPopText(), GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
				    .addComponent(getJLabel2(), GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE))
				.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
				.addGroup(jPanel1Layout.createParallelGroup(GroupLayout.Alignment.BASELINE)
				    .addComponent(getWText(), GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
				    .addComponent(getJLabel3(), GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE))
				.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
				.addGroup(jPanel1Layout.createParallelGroup(GroupLayout.Alignment.BASELINE)
				    .addComponent(getSizeText(), GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
				    .addComponent(getJLabel4(), GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE))
				.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
				.addGroup(jPanel1Layout.createParallelGroup(GroupLayout.Alignment.BASELINE)
				    .addComponent(getRoeCB(), GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
				    .addComponent(getJLabel5(), GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE))
				.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
				.addGroup(jPanel1Layout.createParallelGroup(GroupLayout.Alignment.BASELINE)
				    .addComponent(getIncubationText(), GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
				    .addComponent(getJLabel6(), GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE))
				.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
				.addGroup(jPanel1Layout.createParallelGroup(GroupLayout.Alignment.BASELINE)
				    .addComponent(getLongevityText(), GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
				    .addComponent(getJLabel7(), GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE))
				.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
				.addGroup(jPanel1Layout.createParallelGroup(GroupLayout.Alignment.BASELINE)
				    .addComponent(getClutchText(), GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
				    .addComponent(getJLabel12(), GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE))
				.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
				.addGroup(jPanel1Layout.createParallelGroup(GroupLayout.Alignment.BASELINE)
				    .addComponent(getImageURLText(), GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
				    .addComponent(getJLabel13(), GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE))
				.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
				.addGroup(jPanel1Layout.createParallelGroup(GroupLayout.Alignment.BASELINE)
				    .addComponent(getColorText(), GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
				    .addComponent(getJLabel14(), GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE))
				.addGroup(jPanel1Layout.createParallelGroup()
				    .addGroup(GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()
				        .addComponent(getJLabel8(), GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
				        .addGap(20))
				    .addGroup(jPanel1Layout.createSequentialGroup()
				        .addGap(13)
				        .addGroup(jPanel1Layout.createParallelGroup(GroupLayout.Alignment.BASELINE)
				            .addComponent(getInsertTypeOfFood(), GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
				            .addComponent(getJLabel9(), GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE))))
				.addComponent(getJLabel10(), GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
				.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
				.addGroup(jPanel1Layout.createParallelGroup(GroupLayout.Alignment.BASELINE)
				    .addComponent(getHabitatText(), GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
				    .addComponent(getJLabel11(), GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE))
				.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
				.addComponent(getOkButtonInsert(), GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
				.addContainerGap(63, Short.MAX_VALUE));
		}
		return jPanel1;
	}
	
	private JScrollPane getJScrollPane1() {
		if(jScrollPane1 == null) {
			jScrollPane1 = new JScrollPane();
			getJScrollPane1().getHorizontalScrollBar().setVisible(false);
			getJScrollPane1().getHorizontalScrollBar().setEnabled(false);
			getJScrollPane1().getHorizontalScrollBar().setEnabled(false);
			getJScrollPane1().getVerticalScrollBar().setAlignmentY(1.0f);
			jScrollPane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
			jScrollPane1.setViewportView(getJPanel1());
		}
		return jScrollPane1;
	}
	
	private JLabel getJLabel8() {
		if(jLabel8 == null) {
			jLabel8 = new JLabel();
			jLabel8.setText("Food Information:");
		}
		return jLabel8;
	}
	
	private JLabel getJLabel9() {
		if(jLabel9 == null) {
			jLabel9 = new JLabel();
			jLabel9.setText("Feeds on:");
		}
		return jLabel9;
	}

	private JLabel getJLabel10() {
		if(jLabel10 == null) {
			jLabel10 = new JLabel();
			jLabel10.setText("Habitat Information:");
		}
		return jLabel10;
	}

	private JLabel getJLabel11() {
		if(jLabel11 == null) {
			jLabel11 = new JLabel();
			jLabel11.setText("Type of Habitat:");
		}
		return jLabel11;
	}

	private JButton getOkButtonInsert() {
		if(OkButtonInsert == null) {
			OkButtonInsert = new JButton();
			OkButtonInsert.setText("Insert");
			OkButtonInsert.setAction(getOK_insert());
		}
		return OkButtonInsert;
	}
	
	private AbstractAction getOK_insert() {
		if(OK_insert == null) {
			OK_insert = new AbstractAction("Insert", null) {
				public void actionPerformed(ActionEvent evt) {
					String txt;
					String roe;
					float size = 0;
					float weight = 0;
					boolean dispose = true;
					successDialog sD = new successDialog(insertWindow.this);
					
					//Just try to insert in the database.
					//TODO: More user friendly warn when Scientific Name is duplicated...
					try {
						txt = "Inserted!";
						BirdVO b = new BirdVO(getSciText().getText(),
								(String)getRoeCB().getSelectedItem(),
								getImageURLText().getText(),
								Float.valueOf(getWText().getText()),
								getHabitatText().getText(),
								Float.valueOf(getIncubationText().getText()),
								Float.valueOf(getLongevityText().getText()),
								getColorText().getText(),
								Float.valueOf(getSizeText().getText()),
								Float.valueOf(getClutchText().getText()),
								getInsertTypeOfFood().getText()
								);
						BirdDAO.writeBird(b);
						BirdDAO.addPopularName(getPopText().getText(), b);
					} catch (SQLException ex) 
					{
						dispose = false;
						txt = "Insertion Failed!";
						
						System.out.println(ex.getMessage());
					}
					
					if (dispose) {
						insertWindow.this.dispose();
					}
					
					sD.setLabelText(txt);
					sD.pack();
					sD.setLocationRelativeTo(null);
					sD.setVisible(true);										
				}
			};
		}
		return OK_insert;
	}

	private JTextField getInsertTypeOfFood() {
		if(insertTypeOfFood == null) {
			insertTypeOfFood = new JTextField();
		}
		return insertTypeOfFood;
	}

	private JTextField getHabitatText() {
		if(habitatText == null) {
			habitatText = new JTextField();
		}
		return habitatText;
	}
	
	private JLabel getJLabel6() {
		if(jLabel6 == null) {
			jLabel6 = new JLabel();
			jLabel6.setText("Incubation Time:");
		}
		return jLabel6;
	}
	
	private JTextField getIncubationText() {
		if(incubationText == null) {
			incubationText = new JTextField();
		}
		return incubationText;
	}
	
	private JLabel getJLabel7() {
		if(jLabel7 == null) {
			jLabel7 = new JLabel();
			jLabel7.setText("Longevity:");
		}
		return jLabel7;
	}
	
	private JTextField getLongevityText() {
		if(longevityText == null) {
			longevityText = new JTextField();
		}
		return longevityText;
	}
	
	private JLabel getJLabel12() {
		if(jLabel12 == null) {
			jLabel12 = new JLabel();
			jLabel12.setText("Clutch Size:");
		}
		return jLabel12;
	}
	
	private JTextField getClutchText() {
		if(clutchText == null) {
			clutchText = new JTextField();
		}
		return clutchText;
	}
	
	private JLabel getJLabel13() {
		if(jLabel13 == null) {
			jLabel13 = new JLabel();
			jLabel13.setText("Image URL:");
		}
		return jLabel13;
	}
	
	private JTextField getImageURLText() {
		if(imageURLText == null) {
			imageURLText = new JTextField();
		}
		return imageURLText;
	}
	
	private JLabel getJLabel14() {
		if(jLabel14 == null) {
			jLabel14 = new JLabel();
			jLabel14.setText("Color:");
		}
		return jLabel14;
	}
	
	private JTextField getColorText() {
		if(colorText == null) {
			colorText = new JTextField();
		}
		return colorText;
	}

}
